import Layout from "@/layout";

export default [
  {
    path: "/system",
    component: Layout,
    name: "system",
    meta: { title: "系统工具", icon: "el-icon-s-help" },
    children: [
      {
        path: "/system/base",
        name: "system_base",
        component: () => import("@/views/system/base/index"),
        meta: { title: "基本配置", icon: "tree" },
      },
      {
        path: "/system/module",
        name: "system_module",
        component: () => import("@/views/system/module/index"),
        meta: { title: "菜单功能", icon: "tree" },
      },
      {
        path: "/system/broadcast",
        name: "system_broadcast",
        component: () => import("@/views/chat/index"),
        meta: { title: "发送消息", icon: "tree" },
      },
      {
        path: "/system/list",
        name: "system_list",
        component: () => import("@/views/system/list/index"),
        meta: { title: "列表配置", icon: "table" },
      },
      {
        path: "/system/list/edit",
        name: "system_list_edit",
        component: () => import("@/views/system/list/edit"),
        meta: { title: "设置列表配置", icon: "table" },
      },
      {
        path: "/system/form",
        name: "system_form",
        component: () => import("@/views/system/form/index"),
        meta: { title: "表单配置", icon: "tree" },
      },
      {
        path: "/system/images",
        name: "system_images",
        component: () => import("@/views/system/image/index"),
        meta: { title: "图片管理", icon: "tree" },
      },
    ],
  },
  {
    path: "/system/dictionary",
    component: Layout,
    name: "system_dictionary",
    meta: { title: "字典管理", icon: "el-icon-s-help" },
    children: [
      {
        path: "/system/dictionary/company",
        name: "system_dictionary_company",
        component: () => import("@/views/system/dictionary/company/index"),
        meta: { title: "公司管理", icon: "tree" },
      },
      {
        path: "/system/dictionary/source",
        name: "system_dictionary_source",
        component: () => import("@/views/system/dictionary/source/index"),
        meta: { title: "渠道管理", icon: "tree" },
      },
      {
        path: "/system/dictionary/status",
        name: "system_dictionary_status",
        component: () => import("@/views/system/dictionary/status/index"),
        meta: { title: "状态管理", icon: "tree" },
      },
      {
        path: "/system/dictionary/region",
        name: "system_dictionary_region",
        component: () => import("@/views/system/dictionary/region/index"),
        meta: { title: "地区管理", icon: "tree" },
      },
      {
        path: "/system/dictionary/picker",
        name: "system_dictionary_picker",
        component: () => import("@/views/system/dictionary/picker/index"),
        meta: { title: "常用设置", icon: "tree" },
      },
    ],
  },
];
